#!/bin/bash


if [ "$1" == "clean" ] ; then
    rm -f parse.cc MyParserbase.h a.out
else
    bisonc++ -V MyParser.y || exit 1

flex -o MyScanner.cc MyScanner.l
g++ -Wall *.cc
fi
